
i = 1
a = 0
sum = 0
for i in range(1,5):
    #
    a = a*10+1
    sum = sum + a
    i= i+1
    print(sum)
print(sum)
